const filterOption = {
  items: [
		{
		  label: "关键字",
		  type: "input",
		  data: undefined,
		  placeholder: "订单单号/售后单号/定制编码/男士姓名/女士姓名/收件人/手机号/用户ID",
		  value: undefined,
		  key: "keyWord",
		},
		{
		  label: "用户id",
		  type: "input",
		  data: undefined,
		  placeholder: "请输入用户id",
		  value: undefined,
		  key: "customerId",
		},
		{
		  label: "用户手机号",
		  type: "input",
		  data: undefined,
		  placeholder: "请输入用户手机号",
		  value: undefined,
		  key: "mobile",
		},
    {
      label: "订单状态",
      type: "dropdown",
      data: [],
      placeholder: "请选择",
      value: undefined,
      key: "orderStatus"
    },
    {
      label: "售后类型",
      type: "dropdown",
      data: [],
      placeholder: "请选择",
      value: undefined,
      key: "saleOrderTypes"
    },
    {
      label: "售后订单状态",
      type: "dropdown",
      data: [],
      placeholder: "请选择",
      value: undefined,
      key: "saleStatus"
    },
    {
      label: "销售渠道",
      type: "dropdown",
      data: [],
      placeholder: "请选择",
      value: undefined,
      key: "saleOrderChannels"
    },
    {
      label: "销售人员",
      type: "dropdown",
      data: [],
      placeholder: "请选择",
      value: undefined,
      key: "saleMan"
    },
    {
      label: "发货方式",
      type: "dropdown",
      data: [],
      placeholder: "请选择",
      value: undefined,
      key: "deliveryType"
    },
    {
      label: "下单时间",
      type: "datetimerange",
      data: undefined,
      placeholder: "请选择",
      value: undefined,
      key: "bookOrderTime"
    },
    {
      label: "售后申请时间",
      type: "datetimerange",
      data: undefined,
      placeholder: "请选择",
      value: undefined,
      key: "onSaleApplyTime",
    },
  ],
  btnGroup: [{
      label: "查询",
      type: "search"
    },
    {
      label: "清除",
      type: "clear"
    }
  ],
  close: true
};
const path = ['销售管理', '售后订单'];
const chartOptionColor = ['#cc3333', '#9999cc', '#33cc66'];
const chartOption = {
  tooltip: {
    trigger: 'item',
    formatter: "{a} <br/>{b}: {c} ({d}%)",
    position: [200, 60]
  },
  legend: {
    show: false,
    orient: 'vertical',
    x: 'left',
    data: ['退款待处理', '待打款', '待仓库收货']
  },
  series: [{
    name: '三个月内未完结',
    type: 'pie',
    radius: ['50%', '70%'],
    color: chartOptionColor,
    avoidLabelOverlap: false,
    label: {
      normal: {
        show: false,
        position: 'center'
      },
      emphasis: {
        show: true,
        textStyle: {
          fontSize: '12',
          fontWeight: 'bold'
        }
      }
    },
    labelLine: {
      normal: {
        show: false
      }
    },
    data: [{
        value: 335,
        name: '退款待处理'
      },
      {
        value: 310,
        name: '待打款'
      },
      {
        value: 234,
        name: '待仓库收货'
      },
    ]
  }]
};
const pager = {
  params: {
    pageIndex: 1,
    pageSize: 10,
  },
  pageTotal: 0,
  pageSizeArr: [10, 20, 30, 40]
};
const searchFromData = {
  keyWord: undefined,
  afterSaleType: undefined,
  orderStatus: undefined,
  a31: undefined,
  saleChannel: undefined,
  saleMan: undefined,
  a31: undefined,
  a11: undefined,
  a12: undefined,
}
const configArr = [{
    color: "brown",
    label: "全部售后订单",
    value: undefined,
    count: 0
  },
  {
    color: "green",
    label: "退款退货",
    value: undefined,
    count: 0
  },
  {
    color: "yellow",
    label: "常规售后",
    value: undefined,
    count: 0
  },
  {
    color: "red",
    label: "升级换款",
    value: undefined,
    count: 0
  },
];
const dialogForm = {
  payMethod:undefined,
  serialNumber:undefined,
  paymentMoney:undefined,
  payTime:undefined,
};
let Model = {
  data() {
    return {
      Model: {
        path,
        pager,
        filterOption,
        chartOption,
        chartOptionColor,
				configArr,
        searchFromData,
        dialogForm,
        dialogFormVisible:false,
        nowSelectId:undefined,
				tableData: undefined,
				filterOptionData:undefined,
        selectionList: [],
				saleManList:{},
				saleAfterOrderStatus:{},
        tableData: undefined,
        activeTab: '1',
        detailDialogFlag: false
      }
    }
  }
}
export default Model;
